package com.dk.pojo;

import java.util.ArrayList;
import java.util.List;

public class PermissionsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PermissionsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andFeIdIsNull() {
            addCriterion("fe_id is null");
            return (Criteria) this;
        }

        public Criteria andFeIdIsNotNull() {
            addCriterion("fe_id is not null");
            return (Criteria) this;
        }

        public Criteria andFeIdEqualTo(Integer value) {
            addCriterion("fe_id =", value, "feId");
            return (Criteria) this;
        }

        public Criteria andFeIdNotEqualTo(Integer value) {
            addCriterion("fe_id <>", value, "feId");
            return (Criteria) this;
        }

        public Criteria andFeIdGreaterThan(Integer value) {
            addCriterion("fe_id >", value, "feId");
            return (Criteria) this;
        }

        public Criteria andFeIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("fe_id >=", value, "feId");
            return (Criteria) this;
        }

        public Criteria andFeIdLessThan(Integer value) {
            addCriterion("fe_id <", value, "feId");
            return (Criteria) this;
        }

        public Criteria andFeIdLessThanOrEqualTo(Integer value) {
            addCriterion("fe_id <=", value, "feId");
            return (Criteria) this;
        }

        public Criteria andFeIdIn(List<Integer> values) {
            addCriterion("fe_id in", values, "feId");
            return (Criteria) this;
        }

        public Criteria andFeIdNotIn(List<Integer> values) {
            addCriterion("fe_id not in", values, "feId");
            return (Criteria) this;
        }

        public Criteria andFeIdBetween(Integer value1, Integer value2) {
            addCriterion("fe_id between", value1, value2, "feId");
            return (Criteria) this;
        }

        public Criteria andFeIdNotBetween(Integer value1, Integer value2) {
            addCriterion("fe_id not between", value1, value2, "feId");
            return (Criteria) this;
        }

        public Criteria andFeNameIsNull() {
            addCriterion("fe_name is null");
            return (Criteria) this;
        }

        public Criteria andFeNameIsNotNull() {
            addCriterion("fe_name is not null");
            return (Criteria) this;
        }

        public Criteria andFeNameEqualTo(String value) {
            addCriterion("fe_name =", value, "feName");
            return (Criteria) this;
        }

        public Criteria andFeNameNotEqualTo(String value) {
            addCriterion("fe_name <>", value, "feName");
            return (Criteria) this;
        }

        public Criteria andFeNameGreaterThan(String value) {
            addCriterion("fe_name >", value, "feName");
            return (Criteria) this;
        }

        public Criteria andFeNameGreaterThanOrEqualTo(String value) {
            addCriterion("fe_name >=", value, "feName");
            return (Criteria) this;
        }

        public Criteria andFeNameLessThan(String value) {
            addCriterion("fe_name <", value, "feName");
            return (Criteria) this;
        }

        public Criteria andFeNameLessThanOrEqualTo(String value) {
            addCriterion("fe_name <=", value, "feName");
            return (Criteria) this;
        }

        public Criteria andFeNameLike(String value) {
            addCriterion("fe_name like", value, "feName");
            return (Criteria) this;
        }

        public Criteria andFeNameNotLike(String value) {
            addCriterion("fe_name not like", value, "feName");
            return (Criteria) this;
        }

        public Criteria andFeNameIn(List<String> values) {
            addCriterion("fe_name in", values, "feName");
            return (Criteria) this;
        }

        public Criteria andFeNameNotIn(List<String> values) {
            addCriterion("fe_name not in", values, "feName");
            return (Criteria) this;
        }

        public Criteria andFeNameBetween(String value1, String value2) {
            addCriterion("fe_name between", value1, value2, "feName");
            return (Criteria) this;
        }

        public Criteria andFeNameNotBetween(String value1, String value2) {
            addCriterion("fe_name not between", value1, value2, "feName");
            return (Criteria) this;
        }

        public Criteria andFeUrlIsNull() {
            addCriterion("fe_url is null");
            return (Criteria) this;
        }

        public Criteria andFeUrlIsNotNull() {
            addCriterion("fe_url is not null");
            return (Criteria) this;
        }

        public Criteria andFeUrlEqualTo(String value) {
            addCriterion("fe_url =", value, "feUrl");
            return (Criteria) this;
        }

        public Criteria andFeUrlNotEqualTo(String value) {
            addCriterion("fe_url <>", value, "feUrl");
            return (Criteria) this;
        }

        public Criteria andFeUrlGreaterThan(String value) {
            addCriterion("fe_url >", value, "feUrl");
            return (Criteria) this;
        }

        public Criteria andFeUrlGreaterThanOrEqualTo(String value) {
            addCriterion("fe_url >=", value, "feUrl");
            return (Criteria) this;
        }

        public Criteria andFeUrlLessThan(String value) {
            addCriterion("fe_url <", value, "feUrl");
            return (Criteria) this;
        }

        public Criteria andFeUrlLessThanOrEqualTo(String value) {
            addCriterion("fe_url <=", value, "feUrl");
            return (Criteria) this;
        }

        public Criteria andFeUrlLike(String value) {
            addCriterion("fe_url like", value, "feUrl");
            return (Criteria) this;
        }

        public Criteria andFeUrlNotLike(String value) {
            addCriterion("fe_url not like", value, "feUrl");
            return (Criteria) this;
        }

        public Criteria andFeUrlIn(List<String> values) {
            addCriterion("fe_url in", values, "feUrl");
            return (Criteria) this;
        }

        public Criteria andFeUrlNotIn(List<String> values) {
            addCriterion("fe_url not in", values, "feUrl");
            return (Criteria) this;
        }

        public Criteria andFeUrlBetween(String value1, String value2) {
            addCriterion("fe_url between", value1, value2, "feUrl");
            return (Criteria) this;
        }

        public Criteria andFeUrlNotBetween(String value1, String value2) {
            addCriterion("fe_url not between", value1, value2, "feUrl");
            return (Criteria) this;
        }

        public Criteria andFeIconIsNull() {
            addCriterion("fe_icon is null");
            return (Criteria) this;
        }

        public Criteria andFeIconIsNotNull() {
            addCriterion("fe_icon is not null");
            return (Criteria) this;
        }

        public Criteria andFeIconEqualTo(String value) {
            addCriterion("fe_icon =", value, "feIcon");
            return (Criteria) this;
        }

        public Criteria andFeIconNotEqualTo(String value) {
            addCriterion("fe_icon <>", value, "feIcon");
            return (Criteria) this;
        }

        public Criteria andFeIconGreaterThan(String value) {
            addCriterion("fe_icon >", value, "feIcon");
            return (Criteria) this;
        }

        public Criteria andFeIconGreaterThanOrEqualTo(String value) {
            addCriterion("fe_icon >=", value, "feIcon");
            return (Criteria) this;
        }

        public Criteria andFeIconLessThan(String value) {
            addCriterion("fe_icon <", value, "feIcon");
            return (Criteria) this;
        }

        public Criteria andFeIconLessThanOrEqualTo(String value) {
            addCriterion("fe_icon <=", value, "feIcon");
            return (Criteria) this;
        }

        public Criteria andFeIconLike(String value) {
            addCriterion("fe_icon like", value, "feIcon");
            return (Criteria) this;
        }

        public Criteria andFeIconNotLike(String value) {
            addCriterion("fe_icon not like", value, "feIcon");
            return (Criteria) this;
        }

        public Criteria andFeIconIn(List<String> values) {
            addCriterion("fe_icon in", values, "feIcon");
            return (Criteria) this;
        }

        public Criteria andFeIconNotIn(List<String> values) {
            addCriterion("fe_icon not in", values, "feIcon");
            return (Criteria) this;
        }

        public Criteria andFeIconBetween(String value1, String value2) {
            addCriterion("fe_icon between", value1, value2, "feIcon");
            return (Criteria) this;
        }

        public Criteria andFeIconNotBetween(String value1, String value2) {
            addCriterion("fe_icon not between", value1, value2, "feIcon");
            return (Criteria) this;
        }

        public Criteria andFePidIsNull() {
            addCriterion("fe_pid is null");
            return (Criteria) this;
        }

        public Criteria andFePidIsNotNull() {
            addCriterion("fe_pid is not null");
            return (Criteria) this;
        }

        public Criteria andFePidEqualTo(Integer value) {
            addCriterion("fe_pid =", value, "fePid");
            return (Criteria) this;
        }

        public Criteria andFePidNotEqualTo(Integer value) {
            addCriterion("fe_pid <>", value, "fePid");
            return (Criteria) this;
        }

        public Criteria andFePidGreaterThan(Integer value) {
            addCriterion("fe_pid >", value, "fePid");
            return (Criteria) this;
        }

        public Criteria andFePidGreaterThanOrEqualTo(Integer value) {
            addCriterion("fe_pid >=", value, "fePid");
            return (Criteria) this;
        }

        public Criteria andFePidLessThan(Integer value) {
            addCriterion("fe_pid <", value, "fePid");
            return (Criteria) this;
        }

        public Criteria andFePidLessThanOrEqualTo(Integer value) {
            addCriterion("fe_pid <=", value, "fePid");
            return (Criteria) this;
        }

        public Criteria andFePidIn(List<Integer> values) {
            addCriterion("fe_pid in", values, "fePid");
            return (Criteria) this;
        }

        public Criteria andFePidNotIn(List<Integer> values) {
            addCriterion("fe_pid not in", values, "fePid");
            return (Criteria) this;
        }

        public Criteria andFePidBetween(Integer value1, Integer value2) {
            addCriterion("fe_pid between", value1, value2, "fePid");
            return (Criteria) this;
        }

        public Criteria andFePidNotBetween(Integer value1, Integer value2) {
            addCriterion("fe_pid not between", value1, value2, "fePid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}